//
// Created by 123 on 2024/12/30.
//
#include "iostream"
using namespace std;

int main031(){
    int arr[] = {1,2,3};
    int* ptr = arr;
    cout << "first element:" << arr[0] << endl;
    cout << "ptr see first element:" << *ptr << endl;
    cout << "ptr see first element:" << ptr[0] << endl;

    for (int i = 0; i < 3; ++i) {
//        cout << *(ptr+i) << endl;
        cout << *ptr << endl;
        ptr++;
    }
    return 0;
}